using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HCM_maps_website.Process.DAL;

namespace HCM_maps_website.Process.BLL
{
    
    public class UserBLL
    {
        UserDAO user = new UserDAO();
        public bool SavePlace(int IDUser,int IDPlace,DateTime DateCreate,DateTime LastAcess)
        {
            return user.SavePlace(IDUser,IDPlace,DateCreate,LastAcess);
        }
        public int AddUser(int ID, string Name, string Pass, string Display, string Email)
        {
            return user.AddUser(Name,Pass,Display,Email);
        }
        public User KTDangNhap(string name, string pass)
        {
            return user.KTDangNhap(name, pass);
        }
        public void UpdatePass(string newpass, int ID)
        {
            user.UpdatePass( newpass, ID);
        }
        public List<UserPlace> ReturnUserPlace(int ID)
        {
            return user.ReturnUserPlace(ID);
        }
        public List<UserRoute> ReturnUserRoute(int ID)
        {
            return user.RetrunUserRoute(ID);
        }
        public void AddPlace(int type,string FullName,string Address,Double xLocation,Double yLocation)
        {
            user.AddPlace(type, FullName, Address, xLocation, yLocation);
        }
        public bool SaveSearchWay(int UserID,Double xS,Double yS,Double xD,Double yD,DateTime DateCreate,DateTime lastacess)
        {
            return user.SaveSearchWay(UserID, xS, yS, xD, yD, DateCreate, lastacess);
        }
    }
}